import { Entity, Column, PrimaryGeneratedColumn, CreateDateColumn, UpdateDateColumn } from "typeorm";

@Entity('test_role')
export class RoleEntity {
  @PrimaryGeneratedColumn({ type: 'int' })
  id: number;

  @Column()
  role_name: string;

  @Column()
  role_code: string;

  @CreateDateColumn()
  create_time: Date;

  @Column()
  create_user_id: number;

  @UpdateDateColumn()
  update_time: Date

  @Column({ select: false, default: false })
  delete_flag: boolean;
}